//
//  XNQShoppingTrolleyCenterTableViewCell.m
//  StoreSystem
//
//  Created by qianfeng on 15/5/9.
//  Copyright (c) 2015年 qianfeng. All rights reserved.
//
#import "CusSegment.h"
#import "XNQShoppingTrolleyCenterTableViewCell.h"

@implementation XNQShoppingTrolleyCenterTableViewCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self)
    {
    }
    return self;
}

- (void)awakeFromNib {
    // Initialization code
    

    [self.selectButton setImage:[UIImage imageNamed:@"radiobuttons_pressed"] forState:UIControlStateSelected];
    self.selectButton.userInteractionEnabled = NO;

    
    CusSegment *segView = [[CusSegment alloc] initWithFrame:CGRectMake(300, 50, 50, 15)];
    
    //    segView.maxCount = @"30";
    //    segView.textCount = @"10";
    //    segView.lineColor = [UIColor redColor];
    //    segView.leftRightWidth = 100;
    //    segView.viewCornerRadius = 3;
    //    segView.isSupport = YES;
    
    [segView setCountChange:^(NSString *countStr) {
        NSLog(@"%@",countStr);
    }];
    [self addSubview:segView];



}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state

}

@end
